<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<?php
$pageoption = JRequest::getVar('option', '');
$pageview = JRequest::getVar('view', '');
$pageitemid = JRequest::getVar('Itemid', '');
$pageid = JRequest::getVar('id', '');
$pagetask = JRequest::getVar('task', '');
$page = JRequest::getVar('page', '');
$menu = & JSite::getMenu();
$document =& JFactory::getDocument();
$title = $document->getTitle();
$layout = JRequest::getVar('layout', '');
//echo $pageid;
jimport('mylibs.globalModel');
$globalModel = new globalModel();
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="<?php echo $this->baseurl ?>/templates/skovmarken/css/style.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="<?php echo $this->baseurl ?>/templates/skovmarken/favicon.ico"/>

<title><?php echo $title;?></title>
<style type="text/css" id="page-css">
	@font-face{
	font-family:'Tempus Sans ITC';
	src: url('templates/skovmarken/fonts/TEMPSITC.TTF');  
	src: local('TEMPSITC'), 
	url('templates/skovmarken/fonts/TEMPSITC.TTF') format('truetype');}
</style>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/skovmarken/Scripts/jquery.js"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.4.min.js"></script>
<!-- Roll -->
<link href="<?php echo $this->baseurl ?>/templates/skovmarken/css/screen/jScrollPane.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/skovmarken/Scripts/jScroll_1.js"></script>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/skovmarken/Scripts/jScroll_2.js"></script>
<script language="javascript">
    $(document).ready(function(){
        // js cua roll
        $('#pane').jScrollPane({scrollbarWidth: 9});
    });
</script>
<style>
    img{border: none;}
    .bg_alert{ width:270px; height:115px; background:url(<?php echo $this->baseurl ?>/templates/skovmarken/img/bg_alert.png) no-repeat top left; margin:0px auto; padding:15px 0px 0px 83px; color:#000;}
    .m35l{ margin-left:35px;}    
</style>
<style type="text/css" id="page-css">
 @font-face{
 font-family:'Tempus Sans ITC';
 src: url('fonts/TEMPSITC.eot');  
 src: local('TEMPSITC'), 
 url('fonts/TEMPSITC.ttf') format('truetype');}
</style>
</head>
<body>
<!--Popup-->
<div class="bg_alert" id="show_popup" style="display:none; position: fixed; top: 35%; left: 50%; z-index:10001; margin-left:-140px;">
	<span id="f_focus" style="display:none;"></span>
	<div style="margin:0; padding-top:10px; min-height:60px;" id="alert"></div>
	<div style="padding-left: 40px;"><a href="javascript:void(0);" onclick="close_popup();"><img src="<?php echo $this->baseurl ?>/templates/skovmarken/img/bt_luk1.png" alt="" /></a></div>
</div>
<!--End Popup-->
<!--Need-->
<div style="display: none;position: fixed; top: 0;left: 0;width: 100%;height: 100%;background-color: #000000;z-index:10000;-moz-opacity: 0.8;opacity:.80;filter: alpha(opacity=80);" id="backoverlay"></div>
<!--End-->

<!-- begin: #Page -->
<div id="page">
	<!-- begin: #Page_margin -->
	<div id="page_margin">
        <!-- begin: #Header -->
        <div id="header">
            <div class="logo"><a href="<?php echo $this->baseurl ?>"><img src="<?php echo $this->baseurl ?>/templates/skovmarken/img/logo.png" alt="" /></a></div>
            <div id="tabs7">
                <jdoc:include type="modules" name="menu" />
            </div><br class="clear_left" />
        </div>
        <!-- end: #Header -->
        <!-- begin: #Bg_flash -->
        <?php if($pageview=='frontpage'){?>
        <div class="bg_flash">
        	<div class="flash">
        		<?php 
	        		$data = $globalModel->getImgFromPhocaId(20); 
	        			         		  		
	        	?>
            	<img src="<?php echo 'images/phocagallery/'.$data['filename']; ?>" alt="" />
            </div>
        </div>
        <?php }?>
        <!-- end: #Bg_flash -->
        <!-- begin: #Main -->
        <div id="main">
            <jdoc:include type="component" />

            <div class="clear"></div>
        </div>
        <!-- end: #Main -->
    </div>
	<!-- end: #Page_margin -->
    <!-- begin: #Footer -->
    <div id="footer">
    	<div id="footer_ct">
            <p class="float_left">Copyright © 2011 <a href="http://www.skovmarken.dk" target="_blank">SKOVMARKEN.DK.</a> All rights reserved.</p>
            <p class="float_right">Design by <a href="http://www.mywebcreations.dk" target="_blank">My Web Creations</a></p>
            <br class="clear" />
        </div>
    </div>
    <!-- end: #Footer -->
</div>
<!-- end: #Page -->
</body>
</html>
